<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>??</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<script type="text/javascript" src="scripts/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
	$(function(){
		$(".getjson").click(function(){
			var url=this.href;
			var args={};
			$.post(url,args,function(data){
				for(var i=0;i<data.length;i++){
					var id=data[i].id;
					var name=data[i].lastName;
					alert(id+name);
				}
			})
			return false;
		});
	}

</script>
<body>
	<a href="${pageContext.request.contextPath}/testSimpleMappingExceptionResolver?i=3">testSimpleMappingExceptionResolver</a>
	<br>
	<a href="${pageContext.request.contextPath}/testNumberNotMatcherException?i=10">testNumberNotMatcherException</a>
	<br>
 	<a href="${pageContext.request.contextPath}/testException?i=10">测试异常</a>
	<br>
	<a href="${pageContext.request.contextPath}/upload">文件上传</a>
	<br>

	<form action="${pageContext.request.contextPath }/testRmployeeConverter" method="post">
		<%-- 提交内容为:admin-qwe@qq.com-1-101 --%>
		<input type="text" name="employee">
		类型转换：<button type="submit" value="submit">提交</button>
	</form>
	<a href="${pageContext.request.contextPath}/testJson" class="getjson">testJson</a>
	<br>
	<br>
	<a href="${pageContext.request.contextPath}/emps">List All Employees</a>
	<br>
</body>
</html>